<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>比较运算符</title>
</head>
<body>
    <script type="text/javascript">
        // === !==
        var a = 5;
        var astr = '5';
        // 判断值和数据类型是否一致
        var isequal1 = a === astr;
        // 判断值是否一致
        var isequal2 = a == astr;

        console.log(isequal1);  // false
        console.log(isequal2);  //true
    </script>
</body>
</html>